/**
 * Copyright (C) 2010 Comba Telecom Systems Holdings Ltd. All rights reserved
 *
 * 本代码版权归京信通信系统控股有限公司所有，且受到相关的法律保护。
 * 没有经过版权所有者的书面同意，
 * 任何其他个人或组织均不得以任何形式将本文件或本文件的部分代码用于其他商业用途。
 *
 */
package com.javaframe.role.tools;


/**
 * 【分页信息类】
 *
 * @version 
 * @author mengfang  2011-7-11 下午08:35:03
 * 
 */
public class PageInfo {
   public static final String DEFAULT_PAGE_SIZE_PARAMKEY = "OMC5toSetPageSize";
   public static final int DEFAULT_PAGE_SIZE = 10;
   public static final String ORDERBY_ASC = "Asc";
   public static final String ORDERBY_DESC = "Desc";
   private int pageSize = 10;
   private int totalCount = 0;
   private boolean needCount = true;
   private int totalPage;
   private int pageNo = 1;
   private String orderBy = ORDERBY_ASC;
   private String orderByObj = "";
   private boolean needDistinct = true;
   

   public boolean isNeedDistinct() {
      return needDistinct;
   }
   public void setNeedDistinct(boolean needDistinct) {
      this.needDistinct = needDistinct;
   }
   public int getPageSize() {
      return this.pageSize;
   }
   public void setPageSize(int pageSize) {
      this.pageSize = pageSize;
   }
   public int getTotalCount() {
      return totalCount;
   }
   public void setTotalCount(int totalCount) {
      this.totalCount = totalCount;
   }
   public boolean isNeedCount() {
      return needCount;
   }
   public void setNeedCount(boolean needCount) {
      this.needCount = needCount;
   }
   public int getTotalPage() {
      return totalPage;
   }
   public void setTotalPage(int totalPage) {
      this.totalPage = totalPage;
   }
   public int getPageNo() {
      return pageNo;
   }
   public void setPageNo(int pageNo) {
      this.pageNo = pageNo;
   }
   public String getOrderBy() {
      return orderBy;
   }
   public void setOrderBy(String by) {
      orderBy = by;
   }
   public String getOrderByObj() {
      return orderByObj;
   }
   public void setOrderByObj(String byObj) {
      orderByObj = byObj;
   }

}
